Merge branch 'master' of git://factorcode.org/git/factor
[factor/jcg.git] / misc / Factor.tmbundle / Commands / See Word.tmCommand
blob4502e235be0b2eaf6a9c30bf9173181025ac69dc
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5 <key>beforeRunningCommand</key>
6 <string>nop</string>
7 <key>command</key>
8 <string>#!/usr/bin/env ruby
10 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/tm_factor"
12 doc = STDIN.read
13 word = line_current_word(ENV["TM_CURRENT_LINE"], ENV["TM_LINE_INDEX"].to_i)
14 puts factor_eval(%Q(#{doc_using_statements(doc)} USE: prettyprint\n \\ #{word} see))</string>
15 <key>fallbackInput</key>
16 <string>word</string>
17 <key>input</key>
18 <string>document</string>
19 <key>keyEquivalent</key>
20 <string>^h</string>
21 <key>name</key>
22 <string>See Word</string>
23 <key>output</key>
24 <string>showAsTooltip</string>
25 <key>scope</key>
26 <string>source.factor</string>
27 <key>uuid</key>
28 <string>35484754-DBF9-4381-BB25-00CAB64DF4A1</string>
29 </dict>
30 </plist>